package com.gmcc.docmanager.control;

import com.gmcc.docmanager.entity.Account;
import com.gmcc.docmanager.loader.Response;

public class LoginResponse extends Response {

	private Account account;

	public LoginResponse() {

	}

	public LoginResponse(Response response) {
		setCode(response.getCode());
		setDescription(response.getDescription());
		if (response.getResponseObject() != null
				&& response.getResponseObject() instanceof Account) {
			setAccount((Account) response.getResponseObject());
		}
	}

	public Account getAccount() {
		return account;
	}

	public void setAccount(Account account) {
		this.account = account;
	}

};
